package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.victor.entity.TravelComments;
@Mapper
public interface TravelCommentsDao {
	/**
	 * 删除评论
	 * @param id
	 * @return
	 */
    boolean  deleteByPrimaryKey(int[] id);
    /**
     * 添加评论
     * @param record
     * @return
     */
    boolean insertSelective(TravelComments record);

    TravelComments selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TravelComments record);

    int updateByPrimaryKey(TravelComments record);
    /**
     * 根据游记id查询
     * @param i
     * @return
     */
	List<TravelComments> selByTravelId(int i);
	/**
	 * 根据游记id查询(app)
	 * @param travelid
	 * @return
	 */
	List<TravelComments> selAppByTravelid(String travelid);
}